package interpreter;

public class MeasurementEvent implements Comparable<MeasurementEvent> {
	long timestamp;
	boolean is_start;
	
	public long getTimestamp() {
		return timestamp;
	}
	
	public boolean getIsStart() {
		return is_start;
	}
	
	public MeasurementEvent(long _timestamp, boolean _is_start) {
		timestamp = _timestamp;
		is_start = _is_start;
	}
	
	public int compareTo(MeasurementEvent r) {
		return (int)(this.timestamp - r.timestamp);
	}
}
